/*
							Copyright (C) 2010  Alourien Team
									
						This file is part of the Alourien Engine.

    The Alourien Engine is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    The Alourien Engine is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with the Alourien Engine.  If not, see <http://www.gnu.org/licenses/>.
	
 *File Name: COurTimer.h
 *Programmer: Manuel Cuellar
 *Date of Last Update: 9/30/2010
 *Purpose: This timer class provides simple features that will be used
 * in the engine, such as a stopwatch
 *
 *Basic Info: Please do not modify any existing variables or functions.
 * This class is used for estimating frame rate, to better render. It can also
 * return elapsed time since startup in milliseconds(checking for optimization)
 *
 *UPDATES:
 *
 *
 *
 *
 */

#ifndef _COURTIMER_H
#define _COURTIMER_H 1

#include <time.h>
#include <Windows.h>

namespace Alourien
{
	class COurTimer
	{
	private:
		DWORD timer_start;
		DWORD stopwatch_start;
	public:
		COurTimer(void);
		~COurTimer(void);
		DWORD getTimer();
		DWORD getCurrentTime();
		void sleep(int ms);
		void reset();
		bool stopwatch(int ms);

	}; //Class

}; //Namespace

#endif